<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

/**
 * Description of pickup_model
 * 
 * @author Subha Sundar Das (subhasundar.das@gmail.com)
 */
class Admin_pickup_model extends CI_Model {

    //put your code here

    function __construct() {
        parent::__construct();
        log_message('debug', 'Model Initialized');
    }
    
    function get_pickup($code) {
    	$sql = "select * from pickup where slno != 0 and code = $code and status = 51 order by slno ASC";
    	$query = $this->db->query($sql);
    	$result = $query->result();
    	return $result;
    }
    
}